#ifndef _CRT_SLEEP_HPP_
#define _CRT_SLEEP_HPP_

#include <crt_core.hpp>

#ifdef __cplusplus
extern "C" {
#endif

#if (TARGET_OS == OS_WIN)
#include <time.h>
#define sleep_time(x) Sleep(x * 1000);
#elif (TARGET_OS == OS_POSIX)
#define sleep_time(x) sleep(x);
#elif (TARGET_OS == OS_MACH)
#define sleep_time(x) sleep(x);
#elif (TARGET_OS == OS_UNIX)
#define sleep_time(x) sleep(x);
#endif

#ifdef __cplusplus
}
#endif

#endif
